/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lab8;


public class ArboreFunctional {
   private Nod radacina;

    public ArboreFunctional(Nod radacina) {
        this.radacina = radacina;
    }
    public double calculezValoare(double x)
    {
    radacina.x=x;  
    return radacina.calcul();
    }

    @Override
    public String toString() {
        return "ArboreFunctional{" + "radacina=" + radacina + '}';
    }
    public String derivata()
    {
       return radacina.derivare(); 
    }
    double calculezDerivata(double x)
    {
    radacina.x=x;
    return radacina.calculDerivata();
    }
    
}
